package com.bf.electroplating.pojo.dto;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * 雨排口天气数据响应DTO
 *
 * @author system
 * @since 2025-01-11
 */
@Data
@Schema(description = "雨排口天气数据响应DTO")
public class RainfallWeatherDataResponseDTO {

    @Schema(description = "响应码")
    private String code;

    @Schema(description = "响应数据")
    private List<WeatherDataItem> data;

    @Schema(description = "是否成功")
    private Boolean success;

    @Data
    @Schema(description = "天气数据项")
    public static class WeatherDataItem {

        @Schema(description = "时间")
        private String minute;

        @Schema(description = "站点名称")
        private String siteName;

        @Schema(description = "因子值")
        private BigDecimal factorValue;

        @Schema(description = "降雨量")
        private BigDecimal rain;

        @Schema(description = "天气情况 1:晴, 2:多云 3:阴 4:雨 5:雪")
        private String weather;
    }
}
